package com.bdqn.wang.service.impl;

import com.bdqn.wang.dao.OrderAllDao;
import com.bdqn.wang.dao.OrderDao;
import com.bdqn.wang.dao.impl.OrderAllDaoImpl;
import com.bdqn.wang.dao.impl.OrderDaoImpl;
import com.bdqn.wang.pojo.OrderAll;
import com.bdqn.wang.service.OrderAllService;

import java.util.List;

public class OrderAllServiceImpl implements OrderAllService {
    OrderAllDao orderAllDao = new OrderAllDaoImpl();
    @Override
    public List<OrderAll> getAll() {
        return orderAllDao.getAll();
    }

    @Override
    public int add(OrderAll orderAll) {
        return orderAllDao.add(orderAll);
    }

    @Override
    public int del(int id) {
        return orderAllDao.del(id);
    }

    @Override
    public int update(OrderAll orderAll) {
        return orderAllDao.update(orderAll);
    }

    @Override
    public OrderAll getOrderByid(int id) {
        return orderAllDao.getOrderByid(id);
    }

    @Override
    public OrderAll getOrderXiang(int xiang) {
        return orderAllDao.getOrderXiang(xiang);
    }
}
